package com.demo.entity;


public class CustomCrud {
	public static enum EopType {
		select(1), showCol(2), insert(3), update(4), delete(5);
		private int type;

		private EopType(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}
	}

	public static enum Etype {
		String(11, "字符"), number(12, "数字"), ymd(13, "日期：年-月-日"), ymdhm(14, "日期：年-月-日 时:分"), hm(15, "时间： 时:分");
		private int type;
		private String name;

		private Etype(int type, java.lang.String name) {
			this.type = type;
			this.name = name;
		}

		public int getType() {
			return type;
		}

		public String getName() {
			return name;
		}
	}

	private int id;
	private int pId;
	private String name;
	private String code;
	private int type;// 11 字符 12 数字 13 日期【日期：年-月-日】 14 日期：年-月-日 时:分 15时间： 时:分
	private String def;
	private int boNull;
	private int boShow;

	private int operatType;// 1 select 2 show 3insert 4update 5delete

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getpId() {
		return pId;
	}

	public void setpId(int pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDef() {
		return def;
	}

	public void setDef(String def) {
		this.def = def;
	}

	public int getBoNull() {
		return boNull;
	}

	public void setBoNull(int boNull) {
		this.boNull = boNull;
	}

	public int getBoShow() {
		return boShow;
	}

	public void setBoShow(int boShow) {
		this.boShow = boShow;
	}

	public int getOperatType() {
		return operatType;
	}

	public void setOperatType(int operatType) {
		this.operatType = operatType;
	}

	public static void main(String[] args) {
		for (Etype e : Etype.values()) {
			System.out.println(e.getType() + "=" + e.getName());
		}
		System.out.println();
	}
}
